package integration

import (
	"github.com/redis/go-redis/v9"
)

type Redis struct {
	*redis.Client
}

var redisClient = &Redis{
	Client: newRedisClient(),
}

func RedisInstance() *Redis {
	return redisClient
}

func newRedisClient() *redis.Client {
	rdb := redis.NewClient(&redis.Options{
		Addr: "127.0.0.1:6379",
	})
	return rdb
}
